<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>背景与边框篇</title>
    <style>
    .translucent-borders{
        width: 300px;
        height: 300px;
        padding:10px;
        border:10px solid hsla(0,0%,100%,.5);
        background-color: red;
        background-clip:padding-box;
    }
    .inner-rounding{
        width: 200px;
        height: 200px;
        padding:10px;
        background: hotpink;
        border-radius: 10px;
        outline:10px solid purple;
        box-shadow: 0 0 0 5px purple;
        margin: 30px;
    }

    </style>
</head>
<body>
    <div class="translucent-borders">
        仙人掌
    </div>
    <div class="inner-rounding">
        仙人掌
    </div>

</body>
</html>